import React, { useState } from "react";
import watcher from "@/utils/watcher";
import { name } from "@/components/test";
import { name as testName } from "../../common/src/components/test";
import { store } from "./store";

// import f from "react/index";

// console.log("base:", f);
console.log("[base log]:", name);
console.log("直接引用common的文件：", testName);

console.log(store);

export default function App() {
  const [count, setCount] = useState(0);
  return (
    <div>
      <div>Hello world</div>
      <button
        onClick={() => {
          watcher.emit("base：" + count);
          setCount((p) => p + 1);
        }}
      >
        发送：{count}
      </button>
    </div>
  );
}
